function InitAnimation(info)
	anim = AnimationInfo(info.name)
	kfs = KeyFrameSetInfo()
	for i,p in pairs(info.animlist) do
		kfs:SetAnimName(p.name)
		kfs:SetTextureName("data\\Animation\\"..p.texture)
		kfs.direction = p.direction
		kfs.framecount = p.framecount
		kfs.frametime = p.frametime
		kfs.startv = p.startv
		kfs.endv = p.endv
		kfs.animmode = p.animmode
		kfs.colorkey = p.colorkey
		anim:AddKeyFrameSet(kfs)
	end
	AddAnimInfo(anim)
end
Animation = InitAnimation

Animation{
	name = "Archer",
	animlist = {
		{
			name = "Move",
			texture = "Archer\\Move.png",
			framecount = 10,
			frametime = 30, --ms
			direction = 8,
			startv = 0.0,	
			endv = 1.0,
			animmode = Loop,
		},
		{
			name = "Attack",
			texture = "Archer\\Attack.png",
			framecount = 10,
			frametime = 30, --ms
			direction = 8,
			startv = 0.0,	
			endv = 1.0,
			animmode = Loop,
		}
	}
}	

Animation{
	name = "Footman",
	animlist = {
		{
			name = "Stand",
			texture = "Footman\\Stand.bmp",
			framecount = 8,
			frametime = 30, --ms
			direction = 8,
			startv = 0.0,	
			endv = 1.0,
			animmode = Loop,
			colorkey = 0xff00f800,
		},
	}
}	


Animation{
	name = "CityBig",
	animlist = {
		{
			name = "Stand",
			texture = "City\\citybig.bmp",
			framecount = 1,
			frametime = 1000, --ms
			direction = 1,
			startv = 0.0,	
			endv = 1.0,
			animmode = Loop,
			colorkey = 0xff00f800,
		},
	}
}			